﻿using CommunityToolkit.Mvvm.ComponentModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RS.Widgets.Models
{
    public class ComboBoxItemModel<T> : ObservableObject
    {

        private T key;
        /// <summary>
        /// 键值
        /// </summary>
        public T Key
        {
            get { return key; }
            set
            {
                this.SetProperty(ref key, value);
            }
        }


        private string keyDes;
        /// <summary>
        /// 键值描述
        /// </summary>
        public string KeyDes
        {
            get { return keyDes; }
            set
            {
                this.SetProperty(ref keyDes, value);
            }
        }

        private bool isSelect;
        /// <summary>
        /// 选项是否选中
        /// </summary>
        public bool IsSelect
        {
            get { return isSelect; }
            set
            {
                this.SetProperty(ref isSelect, value);
            }
        }
      
    }
}
